# -*- coding: utf-8 -*-

#-------------------------------------------------------------------------------
# Ali Platform
#-------------------------------------------------------------------------------
SIP_APPKEY = '20629'
SECRET_KEY = '6fa62020daef11ddaf54eb4b8fdea865'
SIP_SANDBOX_URL_PRE = 'http://sipdev.alisoft.com/sip/rest?'
SIP_PRODUCTION_URL_PRE = 'http://sip.alisoft.com/sip/rest?'
B_PRODUCTION = True

#-------------------------------------------------------------------------------
# Favshop Constant
#-------------------------------------------------------------------------------
MODEL_KEY_PREFIX = 'favshop-'
SHOP_UPDATE_INTERVAL = 1 # 1 day
USER_UPDATE_INTERVAL = 1 # 1 day
SUBSCRIPTION_UPDATE_INTERVAL = 45 # 45 minutes
ITEMS_GET_PAGE_SIZE = 40 # page size of each fetch

SUBSCRIPTION_FETCHSHOP_INTERVAL = 45 # 45 minutes
FETCH_SHOP_URL_PREFIX='http://store.taobao.com/shop/view_shop.htm?shop_nick='
FAVSHOP_USER_MAX_SUBSCRIPTION = 3 # -1 means no limination. 
